package com.zh.security.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author :fjw
 * @description:TODO
 * @date :2020/10/18 17:47
 */
@Controller
public class UserController {
	@GetMapping("/")
	public String index() {
		return "index";
	}
	@GetMapping("/test")
	public String login() {
		return "login";
	}

	@GetMapping("/logout")
	@ResponseBody
	public String logout() {
		return "logout成功";
	}
}
